package com.dayu.behavior.chain;

/**
 * 请求的审批人
 */
public abstract class Approver {

    //下一位的审批人
    Approver approver;
    //审批人名字
    String name;

    //处理审批请求的方法，得到一个请求
    public abstract void processRequest(PurchaseRequest purchaseRequest);

    public Approver(String name) {
        this.name = name;
    }

    public Approver(Approver approver, String name) {
        this.approver = approver;
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }
}
